-- GENERATED SPELL FOR [Overmaster Pyron] --


function spell0_9026(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9026', 652, 1)
end

function spell1_9026(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(12470,pUnit)
pUnit:RegisterEvent('Sorts_9026', 2000, 1)
end

function Sorts_9026(pUnit, Event)
local choix_sorts_9026 = math.random(0, 1)
if choix_sorts_9026 == 0 then
pUnit:RegisterEvent('spell0_9026', 1, 1)
end
if choix_sorts_9026 == 1 then
pUnit:RegisterEvent('spell1_9026', 1, 1)
end
end

function mob9026_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9026', math.random(1500, 3000), 1)
end

function mob9026_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9026_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9026_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9026, 1, 'mob9026_Action')
RegisterUnitEvent(9026, 2, 'mob9026_Leave')
RegisterUnitEvent(9026, 3, 'mob9026_Kill')
RegisterUnitEvent(9026, 4, 'mob9026_Die')
